fid = fopen('LifeTimeDistribution', 'r');
a = fscanf(fid, '%d %d', [2 inf]);
a = a';

fid = fopen('SocietyAgeDistribution', 'r');
b = fscanf(fid, '%d %d', [2 inf]);
b = b';

figure (1)
plot(a(:,1), a(:,2),'*-');
title('Life Time Distribution');

figure (2)
plot(b(:,1), b(:,2),'o-');
title('Society Age Distribution');